Optimize memcpy for x86 arch. If source buffers does not start at a 64
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 7 Oct 2009 06:45:39 +0000 (07:45 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 7 Oct 2009 06:45:39 +0000 (07:45 +0100)
commit62d705d4a2764cf7d36300bcb4a26a806d0c6db1
tree51bebc4f85dfd4adaa439739542281a151ba158e
parentf00b33008950c400711c9ab1cd11337be04a4eb5
Optimize memcpy for x86 arch. If source buffers does not start at a 64
bit boundary, copy a few bytes at the beginnig up to next 64-bit
boundary and then does an aligned copy for the remaining data. This
can reduce the copy cost by up to 50%.

Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
xen/include/asm-x86/string.h